package de.schnitzeljaeger.model.dao.impl;

import android.content.Context;
import de.schnitzeljaeger.model.dao.IGenericDao;

public abstract class DaoFactory {
	
	static private DatabaseUtil util;
	
	static public <T> IGenericDao<T> create(Class<T> entityClass, Context context) {
		if (util == null)
			util = new DatabaseUtil(context);
		
		return new GenericDBDao<T>(entityClass, util);
	}
}
